#include "worker_x.h"
#include <sys/time.h>           //  for function ->  gettimeofday(&tval, NULL);
#include <unistd.h>   //access()
#include <dirent.h>


int main(int argc, char* argv[])
{
    RT::WorkerParams wp;
    wp.configPath = "../config/config.json";
    RT::Worker* w1 = new RT::Work_x(wp);

    while (1)
    {
        printf("please input 'q' to exit\n");
        char ch = cin.get();
        
        if( ch == 'q')
		{
            printf("\033[1;32m *** start exit main thread ***\033[0m\n");
            break;
	    }
    }
    delete w1;
    std::printf("main exit success\n");
    return 0;
}

